<?php



class PaymentChecksMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.PaymentChecksMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(PaymentChecksPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(PaymentChecksPeer::TABLE_NAME);
		$tMap->setPhpName('PaymentChecks');
		$tMap->setClassname('PaymentChecks');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('PAYMENT_IDEN', 'PaymentIden', 'VARCHAR' , 'payment', 'PAYMENT_IDEN', true, 20);

		$tMap->addPrimaryKey('CHECK_IDEN', 'CheckIden', 'VARCHAR', true, 20);

		$tMap->addColumn('BANK_INITIALS', 'BankInitials', 'VARCHAR', true, 6);

		$tMap->addColumn('ACCOUNT_NUMBER', 'AccountNumber', 'VARCHAR', true, 20);

		$tMap->addColumn('CHECK_NUMBER', 'CheckNumber', 'VARCHAR', true, 20);

		$tMap->addColumn('CHECK_DATE', 'CheckDate', 'DATE', true, null);

		$tMap->addColumn('CHECK_AMOUNT', 'CheckAmount', 'DECIMAL', true, 15);

	} 
} 